// 时间的转化
import moment from 'moment'

const formatTimeAgoFn = targerDate => {
  moment.locale('zh-cn')
  return moment(targerDate).from(new Date())
}

export {
  formatTimeAgoFn
}
